﻿// Khởi tạo module
var app = angular.module('app', ['ngRoute', 'controllers']);
// Cấu hình routeProvider
app.config(['$routeProvider', function ($routeProvider) {
    $routeProvider
    .when('/index', {
        templateUrl: 'vws/cln/index/index.html',
        controller: 'IndexCtrl'
    })
    .when('/items', {
        templateUrl: 'vws/cln/items/list/list.html',
        controller: 'ItemsListCtrl'
    })
    .when('/items/:cd', {
        templateUrl: 'vws/cln/items/detail/detail.html',
        controller: 'ItemsDetailCtrl'
    });
} ]);